package com.pashanhoo.designpatterns.singleton;

/**懒汉式(静态代码块)
 * @author 胡庆安
 * @version V1.0
 * @Package designpatterns.singleton
 * @date 2020/10/27 16:42
 * @Copyright © 2010-2020 爬山虎科技（扬州）股份有限公司
 */
public class Lazy {
    private static Lazy instance;

    static {
        instance = new Lazy();
    }

    private Lazy() {}

    public static Lazy getInstance() {
        return instance;
    }
}
